<?php if(!empty($setting)) {?>
<?php $row=12/count($setting);?>
<div class="row smallnav">
<?php foreach ($setting as $onerow) { ?>
<div class="col-xs-<?php echo $row?> tx-center">
<?php if(!empty($onerow['link'])) {?>
<a href="<?php echo $onerow['link'];?>">
<?php }?>
<img data-src="<?php echo empty($onerow['image'])? "image/no_image.png":"image/".$onerow['image'];?>" class="lazyload">
<?php if(!empty($onerow['title'])) {?>
<div class="title"><?php echo $onerow['title'];?></div><?php }?>
</a>
</div><?php }?>				
</div>
<?php }?>